#!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''
Created on Nov 20, 2009

@author: anch
'''
import unittest
import resource_manager
import interface.ConsoleAgent

class Test(unittest.TestCase):



	def testMarshallingFromFile(self):
		
		state = resource_manager.ResourceManager.constructStateMap("cain.txt")
		interface.ConsoleAgent.ConsoleDescriptor.drawState(state)
		
		self.assertEqual(len(state.getPlayers()[0].pieces), 20)
		self.assertEqual(len(state.getPlayers()[1].pieces), 20)
		pass


if __name__ == "__main__":
	#import sys;sys.argv = ['', 'Test.testMarshallingFromFile']
	unittest.main()